package com.edu.cdp.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class OrdersDTO {
    @Schema(description = "订单编号")
    private String orderNo;
    @Schema(description = "用户id")
    private Integer userId;
    @Schema(description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime paymentTime;
    @Schema(description = "订单总价")
    private Double totalPrice;
    @Schema(description = "订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime crateTime;

    /**
     * 0表示未支付，1表示已支付
     */
    @Schema(description = "订单支付状态", defaultValue = "0表示未支付，1表示已支付")
    private Integer payStatus;
    /**
     * 0表示已取消，1表示正常
     */
    @Schema(description = "订单状态", defaultValue = "0表示已取消，1表示正常")
    private Integer status;
}
